package com.web.dao.chapter;

import com.web.bean.chapter.Chapter;

import java.util.List;

/**
 * @autor Chen
 * @create 2021--25-12:57
 * 章节的增删改
 * @desc
 */
public interface ChapterDao {
    //id:章节id
    Chapter selectChapterById(String id) throws Exception;
    List<Chapter> selectChapters(String nid) throws Exception;
    void addChapter(Chapter chapter) throws Exception;
    //批量添加选择性去实现
    void addChapters(List<Chapter> chapters) throws Exception;
    void updateChapter(Chapter chapter) throws Exception;
    //id:章节id
    void deleteChapterById(String id) throws  Exception;
}
